<template>

  <image :src="checkURL(src)?src:(prefix+src)"
         mode="aspectFill" class="radius"
         :style="`height:${uni2px(height)}px;width:${uni2px(width)}px;`"></image>
</template>

<script setup lang="ts">
import { defineProps} from "vue";
import {imagePathPrefix} from '/settings'
import {uni2px} from "@/utils";

import {checkURL} from "@/utils";

const prefix =imagePathPrefix


const props =defineProps({
  src:{
    type:String,
    default:'',
  },
  height:{
    type:Number,
    default:148
  },
  width:{
    type:Number,
    default:148
  }
})

</script>

<style scoped>

</style>